package com.ygqh.baby.service.wechat.model.good;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * 好物圈——物品属性
 *
 * @Author: sunshuo
 * @Date: 2019/5/21 11:18
 * @Version: 1.0
 */
public class GoodStockAttr implements Serializable {

	private static final long serialVersionUID = -5646522509051573850L;

	/**
	 * 属性名
	 */
	private AttrName attrName;

	/**
	 * 属性值
	 */
	private AttrValue attrValue;

	public AttrName getAttrName() {
		return attrName;
	}

	public void setAttrName(AttrName attrName) {
		this.attrName = attrName;
	}

	public AttrValue getAttrValue() {
		return attrValue;
	}

	public void setAttrValue(AttrValue attrValue) {
		this.attrValue = attrValue;
	}

	@Override
	public String toString() {
		return "GoodStockAttr{" +
				"attrName=" + attrName +
				", attrValue=" + attrValue +
				'}';
	}

	public class AttrName implements Serializable {

		private static final long serialVersionUID = 5695153573323640881L;

		/**
		 * 属性名称
		 */
		private String name;

		@JSONField(name = "name")
		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		@Override
		public String toString() {
			return "AttrName{" +
					"name='" + name + '\'' +
					'}';
		}
	}

	public class AttrValue implements Serializable {

		private static final long serialVersionUID = 7298023601545611842L;

		/**
		 * 属性值
		 */
		private String name;

		@JSONField(name = "name")
		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		@Override
		public String toString() {
			return "AttrValue{" +
					"name='" + name + '\'' +
					'}';
		}
	}
}
